import { SysUser } from '@/api/model/SysUser';

/**
 * tbl_comment，评论表
 */
export interface Comment {
    /**
     * 评论Id
     */
    commentId: number;
    /**
     * 评论内容
     */
    content: string;
    /**
     * 关联的数据Id
     */
    dataId: number;
    /**
     * 评论类型 competition/works
     */
    type: string;
    /**
     * 评论人Id
     */
    userId: number;

    parentId?: number;

    createTime?: string;

    addr?: string;

    ip?: string;

    user?: SysUser;

    receiveUser?: SysUser;

    subComment?: _Comment[];

    subTotal?: number;
    open?: boolean;
    readStatus?: boolean;

    [property: string]: any;
}


export type _Comment = Partial<Comment>;
